#P81
phrase = "Don't panic!"
plist = list(phrase)
print(phrase) 
print(plist)

new_phrase = ''.join(plist[1:3])
new_phrase = ''.join([new_phrase, plist[5], plist[4], plist[7], plist[6]])

print(plist) #这里的plist仍为原来的内容
print(new_phrase)


#%%
phrase = "Don't panic!"
plist = list(phrase)
print(phrase)
print(plist)

new_phrase = ''.join(plist[1:3]) + ''.join([plist[5], plist[4], plist[7], plist[6]])

print(plist) #这里的plist仍为原来的内容
print(new_phrase)




